package com.fuyao.cloud.common.core.flowable.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

/**
 * @author lyhills
 * @Description 提交flowable参数对象
 * @date 2023/3/7 16:26
 * @Version 1.0
 */
@Data
public class StartProcessInstanceParamsDTO {

    @ApiModelProperty(value = "流程定义key", required = true)
    private String processDefinitionKey;

    @ApiModelProperty(value = "业务表单唯一标识", required = true)
    private String businessKey;

    @ApiModelProperty(value = "表单显示名称", required = true)
    private String formName;

    @ApiModelProperty(value = "流程提交人帐号")
    private String creator;

    @ApiModelProperty(value = "租户ID")
    private String tenantId;

    @ApiModelProperty(value = "启动流程变量")
    private Map<String, Object> variables;

    public StartProcessInstanceParamsDTO(){}

    public StartProcessInstanceParamsDTO(String processDefinitionKey,String businessKey,String formName,String creator,Map<String,Object> variables){
        this.processDefinitionKey = processDefinitionKey;
        this.businessKey = businessKey;
        this.formName = formName;
        this.creator = creator;
        this.variables = variables;
    }
}
